package com.yikome.product.entity;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@Entity
@Table(name = "p_product_sku" , indexes = {@Index(columnList = "productId") , @Index(columnList = "barcode")})
public class ProductSku extends BaseEntity {
	
	private static final long serialVersionUID = -393679824226310216L;

	private String barcode;
	
    private String name;
    
    private Long productId;

    // 库存
    private Integer inventory;
    
    private Long productAttributeValueId1;
    
    private Long productAttributeValueId2;
    
    // 主图
    private String image ; 
    
    
    private BigDecimal price ; 
    
    private BigDecimal purchasePrice ; 
    
    
    //20200715
    private String skuId ; 
}